Page({
  data: { amount: '', time: '' },
  onAmount(e) { this.setData({ amount: e.detail.value }) },
  pickTime() { this.setData({ time: new Date().toLocaleString() }) },
  submit() {
    if (!this.data.amount || !this.data.time) {
      wx.showToast({ title: '请填写完整', icon: 'none' })
      return
    }
    wx.showToast({ title: '提交成功' })
  }
})

